home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / os.806 < prev    next >
Text File  |  1992-02-06  |  3KB  |  61 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f1\fmodern Courier;\f2\fswiss Helvetica;}
  2. \paperw11500
  3. \paperh8140
  4. \margl120
  5. \margr1000
  6. {\colortbl\red0\green0\blue0;}
  7. \pard\tx1140\tx2300\tx3440\tx4600\tx5760\tx6900\tx8060\tx9200\tx10360\tx11520\f0\b0\i0\ul0\fs28\fc0 loginwindow Workspace exited\
  8.  
  9. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600 \
  10. Q:  When Workspace exits, loginwindow sends a message like the following to syslog:\
  11. \
  12.  
  13. \pard\tx1100\tx1720\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9220\tx9600\f1\fs24\li500\fc0 loginwindow: Workspace exited ts 0 cd 0 rc 0 sv 0 ss 0\
  14.  
  15. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\fs28\fc0 \
  16. What do the codes and numbers mean?\
  17. \
  18. A:  These numbers are from the 
  19. \b status
  20. \b0  argument to a 
  21. \b wait
  22. \b0 () system call.\
  23. \
  24.  
  25. \pard\tx1100\tx2480\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9220\tx9600\fi-1980\li2480 ts    termsig    The signal which Workspace received causing it to exit.\
  26. cd    coredump    Whether or not Workspace produced a core dump (0: no, non-zero: yes).\
  27. rc    retcode    The exit code from Workspace (low-order eight bits).\
  28. sv    stopval    If this is WSTOPPED (see <sys/wait.h>), Workspace had stopped.  (WSTOPPED is 0177 in Release 2.)\
  29. ss    stopsig    If stopval is WSTOPPED, this is the signal which stopped Workspace.\
  30.  
  31. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fc0 \
  32. The most important of these for debugging is 
  33. \b termsig
  34. \b0 : if it's non-zero, it will tell you what signal caused Workspace to exit.  These signals are listed in the “signal” UNIX Manual Page, and in <sys/signal.h>.\
  35. \
  36. Let's take an example.  Assume you see the following message:\
  37. \
  38.  
  39. \pard\tx1100\tx1720\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9220\tx9600\f1\fs24\li500\fc0 loginwindow: Workspace exited ts 4 cd 0 rc 0 sv 4 ss 0\
  40.  
  41. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\fs28 \
  42.  
  43. \fc0 The 
  44. \b ts 4
  45. \b0  indicates that Workspace received a signal 4.  Looking in 
  46. \b /usr/include/sys/signal.h
  47. \b0 , you'll find the following:\
  48. \
  49.  
  50. \pard\tx1100\tx1720\tx2260\tx2720\tx5760\tx6720\tx7680\tx8640\tx9220\tx9600\f1\fs24\fc0 #define    SIGILL    4    /* illegal instruction (not reset when caught) */\
  51.  
  52. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\fs28\fc0 \
  53. In this case, Workspace terminated because of an illegal instruction.  You might want to verify that the Workspace executable is intact and has not been corrupted.\
  54. \
  55. QA806\
  56. \
  57. Not checked for 1.0\
  58. Valid for 2.0\
  59. \
  60.  
  61.